# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=usnparser
pkgver=4.1.5
pkgrel=6
pkgdesc='A Python script to parse the NTFS USN journal.'
groups=('blackarch' 'blackarch-forensic' 'blackarch-windows')
arch=('any')
url='https://pypi.org/project/usnparser/#files'
license=('APACHE')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/5d/32/12b558c2462d05442ab23f269a445e76c15a60404416e3a315947f12cc97/$pkgname-$pkgver.tar.gz")
sha512sums=('4643fd7b2b8be73548148f304c73ef91c30c4291625cd43e80fd61a688e47a9f491356fa46adf063d61a7ce96ae8f4cc7fa99453b01fbddc787c950a5d7cbb6e')

build() {
  cd "$pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  mv "$pkgdir/usr/bin/usn.py" "$pkgdir/usr/bin/usn"
}

